package com.md.strategy;

import com.md.util.SpringContextUtil;
import com.md.value.enums.StrategyEnum;

/**
 * @author 刘骄阳
 * 2023-10-10 18:30
 */
public interface Strategy<T> {
  static <T> Strategy<T> getInstance(final StrategyEnum afterStrategyEnum) {
    return SpringContextUtil.getBean(afterStrategyEnum.getMessage());
  }

  void asyncAfter(T t);
}
